import com.bagu.dao.userDao;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class test {

    @Test
    public void test1(){
        ApplicationContext ac = new ClassPathXmlApplicationContext("spring.xml");
        userDao userDao = ac.getBean("userDao", userDao.class);
        int add = userDao.add(2, 3);
    }

}